package com.asa.voice.mp3.asa;

import java.io.IOException;

import com.asa.voice.mp3.asa.output.Audio;

public class Play {
  public static void main(String[] paramArrayOfString) {
   
    
    paramArrayOfString = new String[]{"e:\\Beijing_Bass.mp3"};
    if (paramArrayOfString.length == 0) {
        System.err.println("Please specify a valid filename.");
        return;
      } 
//    PlayBack playBack = new PlayBack((IAudio)new Audio());
    PlayBack playBack = new PlayBack(new Audio());

    for (String str : paramArrayOfString) {
      System.out.println(str);
      try {
        if (playBack.open(str, null)) {
          playBack.getID3Tag().printTag();
          playBack.getHeader().printVBRTag();
          playBack.getHeader().printHeaderInfo();
          playBack.start(true);
          playBack.close();
        } 
      } catch (IOException iOException) {
        iOException.printStackTrace();
      } 
    } 
  }
}
